package com.memo.model;

import java.util.Date;

import com.j256.ormlite.field.DatabaseField;

public class Congratulation {
	public static final String DATE = "date";
	
	@DatabaseField(generatedId = true)
	private int id;
	@DatabaseField
	private String name;
	@DatabaseField
	private String phone;
	@DatabaseField(columnName = DATE) 
	private Date date;
	@DatabaseField
	private String time;
	@DatabaseField
	private String congrWay;
	@DatabaseField
	private String email;
	@DatabaseField
	private String subject;
	@DatabaseField
	private String body;
	@DatabaseField
	private String attachedFiles;
	
	public Congratulation(String name, String phone, Date date, String time, String congrWay, String email, String subject, String body, String attachedFiles){
		this.name = name;
		this.phone = phone;
		this.date = date;
		this.time = time;
		this.congrWay = congrWay;
		this.email = email;
		this.subject = subject;
		this.body = body;
		this.attachedFiles = attachedFiles;
	}
	
	public Congratulation(){
		
	}
	
	public String toString(){
		return getClass().getName() + "[name=" + name + "] " + "[phone=" + phone + "] " 
				+ "[date="+date.toString() + "] "
				+ "[time="+time.toString()+ "] "
				+ "[congrWay=" + congrWay + "] " + "[email=" + email + "] " + "[subject=" + subject + "] "
				+ "[body=" + body + "] " + "[links=" + attachedFiles + "] " ;
	}
	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getPhone() {
		return phone;
	}
	
	public Date getDate() {
		return date;
	}

	public String getTime() {
		return time;
	}

	public String getCongrWay() {
		return congrWay;
	}

	public String getEmail() {
		return email;
	}

	public String getSubject() {
		return subject;
	}

	public String getBody() {
		return body;
	}

	public String getAttachedFiles() {
		return attachedFiles;
	}
}